package test.hxy.mongoSchoolSimple.dao;

import org.springframework.data.mongodb.repository.MongoRepository;
import test.hxy.mongoSchoolSimple.model.Campus;

import java.util.List;

public interface CampusDao extends MongoRepository<Campus, Object> {
    List<Campus> findAll();
    List<Campus> findByCampusNameContains(String campusName);
    Campus findByCampusIdEquals(String campusId);
}
